<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 *模板管理
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('page_setting',$postdata);
		exi('设置成功');
	}
	$item=$this->plugin_setting('page_setting');
	$item['regbg']=$item['regbg']?:'../addons/jy_weishop/resource/images/agent-top.jpg';
	$return['item']=$item;
	$return['types']=get_form_types();
	$return['groups']=pdo_getall('jy_weishop_diyform_group',array('uniacid'=>$_SESSION['uniacid']),array('id','title'),'id');
	$return['htmls']=$htmls;
	exi($return);
}